﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class UserInfoTabBll
    {
        private static UserInfoTabDal dal = new UserInfoTabDal();
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Reg(UserInfo model)
        {
            return dal.RegUser(model) > 0 ? true : false;
        }
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Login(UserInfo model)
        {
            return dal.Login(model) != null ? true : false;
        }
    }
}
